.class Lcom/waiqin365/lightapp/kaoqin/y;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/compons/c/f;

.field final synthetic b:Lcom/waiqin365/lightapp/kaoqin/x;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/x;Lcom/waiqin365/compons/c/f;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    const/4 v6, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/x;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    new-instance v1, Lcom/waiqin365/compons/c/f;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-direct {v1, v2}, Lcom/waiqin365/compons/c/f;-><init>(Lcom/waiqin365/compons/c/f;)V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->a(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;Lcom/waiqin365/compons/c/f;)Lcom/waiqin365/compons/c/f;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u83b7\u53d6\u5230\u4f4d\u7f6e\uff1a"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v1}, Lcom/waiqin365/compons/c/f;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ";\u56de\u8c03\u5904\u7406\u5f00\u59cb!"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v4}, Lcom/waiqin365/compons/c/f;->a()I

    move-result v4

    invoke-static {v0, v1, v2, v3, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v2

    new-instance v3, Lcom/baidu/mapapi/map/MyLocationData$Builder;

    invoke-direct {v3}, Lcom/baidu/mapapi/map/MyLocationData$Builder;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->f()D

    move-result-wide v0

    const-wide/16 v4, 0x0

    cmpg-double v0, v0, v4

    if-gtz v0, :cond_0

    const-wide v0, 0x407f400000000000L    # 500.0

    :goto_0
    double-to-float v0, v0

    invoke-virtual {v3, v0}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->accuracy(F)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v0

    const/4 v1, 0x0

    aget-wide v4, v2, v1

    invoke-virtual {v0, v4, v5}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->latitude(D)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v0

    aget-wide v2, v2, v6

    invoke-virtual {v0, v2, v3}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->longitude(D)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->build()Lcom/baidu/mapapi/map/MyLocationData;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/x;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->p(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationData(Lcom/baidu/mapapi/map/MyLocationData;)V

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v2, v0, Lcom/baidu/mapapi/map/MyLocationData;->latitude:D

    iget-wide v4, v0, Lcom/baidu/mapapi/map/MyLocationData;->longitude:D

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/x;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->p(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/x;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->w(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/x;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/x;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/waiqin365/compons/c/f;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->b(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;Lcom/waiqin365/compons/c/f;)V

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->f()D

    move-result-wide v0

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/y;->b:Lcom/waiqin365/lightapp/kaoqin/x;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/x;->a()V

    goto :goto_1
.end method
